<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"><head>
    <meta charset="UTF-8">
    <title>职位管理</title>
</head>
<body>
<a href="#" th:href="@{/emp/to}">首页</a>
<div style="text-align: center">
    <a href="#" th:href="@{/emp/toaddzhi}">添加</a>
    <span style="color: darkslategray; font-size: 30px">职位管理</span>
    <hr/>

        <table class="list" border="1" bgcolor="#faebd7">
            <!--id  name sex  ctime   xl  zid  address  phone  jphone  did-->
            <tr>
                <th>id</th>
                <th>职位名称</th>
                <th>所属部门</th>
                <th>删除</th>
                <th>修改</th>
            </tr>
            <tr th:each="zhi: ${list}" >
                <td th:text="${zhi.id}"></td>
                <td th:text="${zhi.zname}"></td>
                <td th:text="${zhi.dname}"></td>
                <td><a href="#" th:href="@{/emp/deleteZhi(id=${zhi.id})}">删除</a></td>
                <td><a href="#" th:href="@{/emp/toupZhi(id=${zhi.id})}">修改</a></td>
            </tr>
        </table>
</div>
</body>
</html>